import request from '@/utils/request'

// 查询地图管线信息列表
export function listDispatchMapPipeline(query) {
  return request({
    url: '/system/dispatchMapPipeline/list',
    method: 'get',
    params: query
  })
}

// 查询地图管线信息详细
export function getDispatchMapPipeline(pipeId) {
  return request({
    url: '/system/dispatchMapPipeline/' + pipeId,
    method: 'get'
  })
}

// 新增地图管线信息
export function addDispatchMapPipeline(data) {
  return request({
    url: '/system/dispatchMapPipeline',
    method: 'post',
    data: data
  })
}

// 修改地图管线信息
export function updateDispatchMapPipeline(data) {
  return request({
    url: '/system/dispatchMapPipeline',
    method: 'put',
    data: data
  })
}

// 删除地图管线信息
export function delDispatchMapPipeline(pipeId) {
  return request({
    url: '/system/dispatchMapPipeline/' + pipeId,
    method: 'delete'
  })
}
